DicomObjects.NET.V8
DicomObjects Namespace / DicomDataSetCollection Class / Read Method / Read(IEnumerable<String>,ReadBehaviours) Method

A set of Filenames to read.

The behaviours to be used when reading this stream




In This Topic
    Read(IEnumerable<String>,ReadBehaviours) Method
    In This Topic
    Creates and adds a collection of DicomDataSet objects from a collection of external DICOM files
    Syntax
    'Declaration
     
    Public Overloads Function Read( _
       ByVal FileNames As IEnumerable(Of String), _
       Optional ByVal ReadBehaviour As ReadBehaviours _
    ) As DicomDataSetCollection
    'Usage
     
    Dim instance As DicomDataSetCollection
    Dim FileNames As IEnumerable(Of String)
    Dim ReadBehaviour As ReadBehaviours
    Dim value As DicomDataSetCollection
     
    value = instance.Read(FileNames, ReadBehaviour)

    Parameters

    FileNames

    A set of Filenames to read.

    ReadBehaviour

    The behaviours to be used when reading this stream

    Return Value

    If successful, a DicomDataSetCollection is returned, and is added to the appropriate collection. If unsuccessful, an appropriate error is thrown.
    Remarks
    Like reading from a single DICOM file, this method loops through the list of files and read them one by one and if successful returns a DicomDataSetCollectionwhich contains all the newly created DicomDataSets.
    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also